package Server;

import java.util.ArrayList;

import game.Game;
import game.Player;


public class GameServer implements Runnable {
	
	public ArrayList<Player> players;
	public int roundCounter;
	private Game game;
	
	
	/**
	 * Erstellt ein neues Spiel
	 * Lobby erzeugen die mit diesem GameServer zusammenhängt
	 */
	public GameServer() {
		
	}
	
	public void run() {
		
	}
	
	public void addPlayer(Player player) {
		if(!players.contains(player)) {
			players.add(player);
		}
	}
	
	private void addPlayer2LobbyOfThisGameServer() {}
	
	public void removePlayer(Player player) {
		players.remove(player);
	}
	
	public int countPlayers()  {
		return players.size();
	}

}
